<?php

/**
 * Albireo Kernel
 *
 * @copyright  Copyright (c) 2010 Albireo Solutions
 * @package    Kernel
 */

namespace KernelModule;

use KernelModule\SignModel;

/**
 * Sign In Page presenter.
 *
 * @author     Albireo Solutions
 * @package    Kernel
 */
class SignOutPresenter extends BasePresenter {

    public function actionDefault() {
        $signModel = new SignModel();
        $signModel->signOut($this->getUser(), true);
        $this->flashMessage(_("You were succesfully signed out."));
        $this->redirect(":Kernel:SignIn:");
    }

}